//
//  AppDelegate.swift
//  Swift---新浪微博练习代码
//
//  Created by Mr.Yan on 2017/6/28.
//  Copyright © 2017年 Mr.Yan. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
    
    var window: UIWindow?
    
    
    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        //实例化window
        window = UIWindow(frame: UIScreen.main.bounds)
        window?.backgroundColor = UIColor.white
        //设置为根控制器
        window?.rootViewController = LYMainViewController()
        //设置为主窗口并显示
        window?.makeKeyAndVisible()
        return true
    }
    
    
    
}

